how to determine the greatest speed